﻿using Audit.EntityFramework.Core.Samples.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Audit.EntityFramework.Core.Samples.Data.EntityConfiguration;

public class AuditLogEntityTypeConfiguration : IEntityTypeConfiguration<AuditLogEntry>
{
    public void Configure(EntityTypeBuilder<AuditLogEntry> builder)
    {
        builder.ToTable("tb_auditLogs");
        builder.HasKey(x => x.Id);
        
    }
}
